﻿namespace PrismEx.UnityExtensions.Tests.TestDomain
{
    using Microsoft.Practices.Prism.Events;
    using Microsoft.Practices.Unity;

    public class UnityExtensionsTestDomain
    {
        public UnityExtensionsTestDomain()
        {
            Container = new UnityContainer();
            EventAggregator = new EventAggregator();
        }

        public IEventAggregator EventAggregator { get; protected set; }

        public IUnityContainer Container { get; protected set; }

        public void RegisterContainerExtension(UnityContainerExtension extension)
        {
            Container.AddExtension(extension);
        }
    }
}
